﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExtenstionFunctions
{
    class Program
    {
        static void Main(string[] args)
        {
            decimal[] arr = new decimal[] { 4, 6, 2, 8 };
            Console.WriteLine(arr.SumDecimal<decimal>());
            Console.WriteLine(arr.MaxDecimal<decimal>());
            Console.WriteLine(arr.AvgDecimal<decimal>());
        }
    }
}
